package com.demo.service.impl;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.demo.domain.entity.Pay;
import com.demo.mapper.PayMapper;
import com.demo.service.PayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * <p>
 * 充值明细表 服务实现类
 * </p>
 *
 * @author wu
 * @since 2025-06-20 14:04:44
 */
@Service
public class PayServiceImpl extends ServiceImpl<PayMapper, Pay> implements PayService {

        @Resource
        private PayMapper payMapper;

        @Override
        public List<Pay> findAll(){
            return payMapper.findAll();
        }

        @Override
        public  Pay findOne(Long id){
            return payMapper.findOne(id);
        }

        @Override
        public boolean add(Pay pay){
            return payMapper.add(pay);
        }

        @Override
        public boolean update(Pay pay){
            return payMapper.update(pay);
        }

        public  boolean deleteByid(Long id){
            return payMapper.deleteByid(id);
        }
}
